package com.qf.work20250103;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Scanner;

/**
 * @author zdl
 * @date 2025/1/4
 */

public class Demo4 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("输入聊天内容:");
        String s = sc.nextLine();
        String s1 = s.replace("坍塌", "**").replace("死亡", "**");
        System.out.println("替换后语句:"+s1);
    }

}
